import os

with open("X:\Python\SUIBEER\SUIBEER_main\Django\SUIBEER\SUIBEER\settings.py",'r',encoding="utf-8") as f:
    for line in f:
        if "'NAME': BASE_DIR"in line:
            print(line)